import { request } from '@boeyo/portal';

//设备标定列表
export const getDeviceList = async (params: any) => {
  return await request({
    url: 'device/list',
    method: 'GET',
    params,
  });
};

/**
 * 标定记录列表
 * @param params
 * @returns
 */
export const getCalibrationRecordList = (params) => {
  return request({
    url: `demarcate/demarcateRecordList/${params.deviceId}`,
    method: 'GET',
    params,
  });
};

/**
 * 历史数据下载 mseed
 */
export const downloadHistoryData = (params) => {
  return request({
    url: 'deviceData/historyDown',
    responseType: 'blob',
    params,
  });
};
